package com.atmc.service.impl;

import com.atmc.entity.ResponseResult;
import com.atmc.exception.MyException;

/**
 * @BelongsProject: SpringCloud1216
 * @BelongsPackage: com.atmc.service.impl
 * @Author: chuyings
 * @CreateTime: 2022-11-15  16:35
 * @Version: 1.0
 */
public class ExceptionService {

    public ResponseResult test2() throws MyException{
        int a=5;
        int b=0;
        if(a==5){

            System.out.println(a/b);
        }
        throw new MyException("算术异常");
    }
}
